package com.wx_shop.api.vo;

import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.wx_shop.api.comm.DValid;
import com.wx_shop.api.domain.ProShopcart;

/**
 * 购物车每行
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ShopcartVo extends ProShopcart {
	private static final long serialVersionUID = 1L;

	@NotNull( groups = {DValid.AddEntity.class})
	@Override
	public Integer getProId() {
		return super.getProId();
	}

	@NotNull( groups = {DValid.ModifyEntity.class})
	@Override
	public Integer getNum() {
		return super.getNum();
	}
	
	@NotNull( groups = {DValid.ModifyEntity.class})
	@Override
	public Integer getId() {
		return super.getId();
	}
}
